﻿<table>
<tr>
<?php echo form_open('adminStaff/deleteBooks/'.$id); ?>
	<td colspan="2"><h2 class="title">Книги</h2></td>
	<td><input type="submit" name="submit" value="Избриши селектирани" /></td>
</tr>
<tr><td colspan="2"><h2>Промени книга</h2></td></tr>
<?php 
	foreach ($books as $book)
	{
		echo "<tr><td colspan='2'><a href='".site_url('adminStaff/editBook/'.$book->idBksPk."/".$id)."'>".$book->title."</a></td>";
		echo "<td><input type='checkbox' name=".$book->idBksPk." value=".$book->idBksPk." /></td></tr>";
	}	
?>
<?php echo form_close(); ?>
<tr><td colspan="2"><h2>Додади книга</h2></td></tr>

<?php echo form_open('adminStaff/addBook/'.$id); ?>
<tr><td>Наслов:</td>
	<td><input type="text" name="title" id="title" /></td>
	</tr><tr>
	<td>Издавач:</td>
	<td><input type="text" name="publisher" id="publisher" /></td>
	</tr><tr>
	<td colspan="2"><input type="submit" name="submit" value="Додади" /></td>
	</tr>
<?php echo form_close(); ?>

</table>
